package cn.nexd.collector.bean;

import android.bluetooth.BluetoothDevice;

import java.util.List;

/**
 * Created by codngfish on 16/6/1.
 */
class CollectorStoryContext {

    private BeaconCollectorStoryStrategy beaconCollectorStoryStrategy;

    public CollectorStoryContext(BeaconCollectorStoryStrategy beaconCollectorStoryStrategy) {
        this.beaconCollectorStoryStrategy = beaconCollectorStoryStrategy;
    }

    public void process(BluetoothDevice device, int rssi, byte[] scanRecord, long timestamp) {
        beaconCollectorStoryStrategy.process(device, rssi, scanRecord, timestamp);
    }

    public List<BeaconScannerResult> getBeaconScannerResults() {
        return beaconCollectorStoryStrategy.getBeaconScanerResults();
    }

    public void clear() {
        beaconCollectorStoryStrategy.clear();
    }
}
